/**
 * Copyright (c) 2020-2021 ThunderSoft
 * All Rights Reserved by Thunder Software Technology Co., Ltd and its affiliates.
 * You may not use, copy, distribute, modify, transmit in any form this file
 * except in compliance with ThunderSoft in writing by applicable law.
 *
 */
/**
 * @file    turbox_timer.c
 * @brief   harmony bl platform timer adaptor
 * @details
 * @version 1.0 
 * @author  ThunderSoft  
 * @date    2020/12/3
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                     NAME               DESCRIPTION
 * 2020/12/3                ThunderSoft         Create it. 
 *
 */
#ifndef _SOC_H
#define _SOC_H
#include "soc_common.h"

#define MTIMERCMP                                     0x2004000
#define MTIMER                                        0x200BFF8

//#define MCAUSE_INT_ID_MASK                             0x3FF
#define RISCV_SYS_MAX_IRQ                              16
#define RISCV_PLIC_VECTOR_CNT                          64

#define CLIC_CFG                                       0x00000c00UL
#define CLIC_INTIP                                     0x00000000UL
#define CLIC_INTIE                                     0x00000400UL
#define CLIC_INTCFG                                    0x00000800UL
#define CLIC_HART0_ADDR                                0x02800000UL
#define RISCV_MSTATUS_FS                               0x00006000UL
#define CMSIS_OS_VER                                   0x00000002UL

#endif  // _SOC_H
